package cn.itcast.mapper;


import cn.itcast.bean.Admin;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface AdminMapper extends BaseMapper<Admin> {


    @Select("SELECT * FROM admin where phone=#{phone}")
    Admin selectByName(@Param("phone")String phone);

}
